<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<p>姓名:<span th:text="${username}">李四</span></p>
<p><span th:text="|姓名:${username}!|">李四</span></p>
<p><span th:text="'姓名:'+${username}+'!'">李四</span></p>

</body>
</html>